package work.atpgroup.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import work.atpgroup.entity.User;

import java.util.List;
@Component("userMapper")
public interface UserMapper {
    int insertUser(User user);
    int updateUser(User user);
    int deleteUser(Integer userId);
    User getUserByUserId(Integer userId);
    User getUserByComplexNameOrId(String complexNameOrId);
    List<User> getUserByListId(@Param("id") List<Integer> id);
    int getUserCountByComplexName(String complexName);
}
